USE [DeltaFlex]
GO

IF (OBJECT_ID('dbo.CONCEPTE_FACTURA')) IS NOT NULL
	DROP TABLE dbo.CONCEPTE_FACTURA
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
 
CREATE TABLE CONCEPTE_FACTURA(IDCONCEPTE_FACTURA int NOT NULL,
							  IDFACTURA int NOT NULL,
							  IDALBARA int NOT NULL,
							  
	
 CONSTRAINT PK_CONCEPTE_FACTURA PRIMARY KEY CLUSTERED 
(
	IDCONCEPTE_FACTURA ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

IF (OBJECT_ID('SEQ_CONCEPTE_FACTURA')IS NOT NULL)
	DROP SEQUENCE SEQ_CONCEPTE_FACTURA
GO

CREATE SEQUENCE SEQ_CONCEPTE_FACTURA
	START WITH 1
    INCREMENT BY 1
    MINVALUE 1
    MAXVALUE 9223372036854775807;

GO

